package com.fujin.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fujin.common.utils.PageUtils;
import com.fujin.gulimall.product.Vo.Catelog2Vo;
import com.fujin.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author fujin
 * @email 1242257@gmail.com
 * @date 2021-12-25 10:56:06
 */
public interface CategoryService extends IService<CategoryEntity> {

    Map<String, List<Catelog2Vo>> getCatelogJson();

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    Long[] findPathByattrGroupId(Long attrGroupId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getLevel1Catagories();
}

